/**
 * @Author: Your name
 * @Date:   2024-03-05 16:29:31
 * @Last Modified by:   Your name
 * @Last Modified time: 2024-03-06 16:51:41
 */
// export default async function Page() {
//   return (
//     <div className="bg-blue-500 p-10">
//       <h1>欢迎来到 Next 应用！</h1>
//       <p>这是首页。</p>
//     </div>
//   );
// }

import './styles/globals.css'; // 导入全局样式文件
async function getData() {
  await new Promise((resolve) => setTimeout(resolve, 1500));
  return {
    message: '欢迎来到 Next 应用!',
  };
}
export default async function Page(props) {
  const { message } = await getData();
  // return <h1>{message}</h1>;
  return (
    <div className="bg-blue-500 p-200">
      <h1 className="text-slate-50 text-2xl font-bold">{message}</h1>
    </div>
  );
}
